<h2>Edit Post</h2>
<%= render :partial => 'post', :object => @post if params[:preview_button] && @post.errors.empty? %>
<%= error_messages_for :post %>
<% form_for @post do |f| %>
  <p>
    <label for="post_content">Content:</label><br />
    <%= f.text_area :content, :tabindex => tabindexer %>
  </p>
  <p>
    <%= submit_tag 'Update', :name => 'update_button', :tabindex => tabindexer %>
    <%= submit_tag 'Preview', :name => 'preview_button', :tabindex => tabindexer %>
    <%= cancel_button topic_post_path(@post) %>
  </p>
<% end %>
